<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航栏示例</title>
{#    <link rel="stylesheet" href="{{ url_for('static', filename='order_list.css') }}">#}
    <style>
        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #ffffff;
            padding: 15px 30px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar .logo {
            font-size: 28px;
            font-weight: bold;
            color: #0084ff;
            text-decoration: none;
        }

        .navbar .buttons {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .navbar .button {
            padding: 8px 20px;
            font-size: 16px;
            color: #fff;
            background-color: #0084ff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .navbar .button:hover {
            background-color: #0066cc;
            transform: translateY(-2px);
        }

        .navbar .description {
            margin-left: 30px;
            font-size: 15px;
            {#color: #8590a6;#}
            position: relative;
        }

        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropbtn {
            padding: 8px 20px;
            font-size: 16px;
            color: #fff;
            background-color: #0084ff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dropbtn:hover {
            background-color: #0066cc;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            {#background-color: #ffffff;#}
            min-width: 30px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            border-radius: 6px;
            z-index: 1;
        }

        .dropdown-content a {
            color: #333;
            padding: 6px 16px;
            text-decoration: none;
            display: block;
            transition: background-color 0.3s ease;
        }

        .dropdown-content a:hover {
            background-color: #f5f5f5;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .search-box {
            margin-left: auto;
            margin-right: 15px;
        }

        .search-box input {
            padding: 8px 15px;
            width: 200px;
            border: 1px solid #e8e8e8;
            border-radius: 6px;
            font-size: 14px;
            outline: none;
        }

        .search-box input:focus {
            border-color: #0084ff;
        }

        .content-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            background-color: #ffffff;
        }

        th, td {
            border: 1px solid #e8e8e8;
            padding: 12px;
        }

        th {
            background-color: #fafafa;
            text-align: left;
            font-weight: 600;
            color: #444;
        }

        tr:nth-child(even) {
            background-color: #fafafa;
        }

        tr:hover {
            background-color: #f0f2f5;
            transition: background-color 0.3s ease;
        }
    </style>
</head>
<body>
<div class="navbar">
    <a href="" class="logo">WiPAS</a>
    <div class="buttons">
        <a href="/order/list" class="button">Home</a>
        <a href="/zhixue" class="button">Team</a>
        <a href="/explore" class="button">Project</a>
{#        <a href="/notification" class="button">Staff</a>#}
{#        <a href="/notification" class="button">Upload</a>#}
        <div class="search-box">
            <input type="text" placeholder="搜索你需要的文件...">
        </div>
    </div>
    <div class="description">
        <div class="dropdown">
            <button class="dropbtn">{{ user }}</button>
            <div class="dropdown-content">
                <a href="/login">exit</a>
            </div>
        </div>
    </div>
</div>
<div class="content-container">
    <table>
        <thead>
        <tr>
            <th>ID</th>
            <th>URL</th>
            <th>COUNT</th>
            <th>URL状态</th>
            <th>客户</th>
        </tr>
        </thead>
        <tbody>
        {% for item in data_list %}
            <tr>
                <td>{{ item.id }}</td>
                <td>{{ item.url }}</td>
                <td>{{ item.count }}</td>
                <td>{{ item.status }}</td>
                <td>{{ item.username }}</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
</body>
</html>